<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: admseqmod.php,v $ 
 * $Date: 2005/10/21 12:58:07 $ 
 * $Revision: 1.3 $ 
 * 
 * ********* CVS HEADER ********* 
 */
if($nom!="")
{
	$query="UPDATE sequence SET nom='$nom',description='$description' WHERE id='$argid';";
	$result=rportalrequete($query) or die ("ERREUR 0011");
	header("Location: ?op=admseqliste");
	exit();
}
	$query="SELECT * FROM sequence WHERE id='$argid';";
	$result=rportalrequete($query) or die ("ERREUR 0012");	
	if($row=rportalligne($result))
	{
?>
<?php
include("environnement/$session[environnement]/header.php");
require_once(get_path_module("admin"));
$pc = new panneau_controle();
$pc->calculRubriqueParFonction('admseqliste');
echo $pc->retourneEntete();
?>

<h1>MODIFIER DE LA SEQUENCE</h1>
<form method="post" action="?op=admseqmod">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td>nom</td>
    <td>
    	<input type="hidden" name="argid" value="<?php echo "$argid"; ?>">
        <input type="text" name="nom" value="<?php echo "$row[nom]"; ?>">
      </td>
  </tr>
  <tr>
      <td>description</td>
    <td>
        <textarea name="description" rows="3"><?php echo "$row[description]"; ?></textarea>
      </td>
  </tr>
  <tr>
    <td>
        <input type="submit" name="Submit" value="Envoyer">
      </td>
    <td>
        <input type="reset" name="Submit2" value="R&eacute;tablir">
      </td>
  </tr>
</table>
</form>
<?php
include("environnement/$session[environnement]/footer.php");
?>
<? 
} ?>